
add_library(SwiftExtensions STATIC
  Array+Safe.swift
  AsyncQueue.swift
  AsyncUtils.swift
  CartesianProduct.swift
  Collection+Only.swift
  Collection+PartitionIntoBatches.swift
  FileManager+SanitizedHomeDirectoryOfCurrentUser.swift
  NSLock+WithLock.swift
  PipeAsStringHandler.swift
  ResultExtensions.swift
  Sequence+AsyncMap.swift
  Task+WithPriorityChangedHandler.swift
  ThreadSafeBox.swift
)
set_target_properties(SwiftExtensions PROPERTIES
  INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_Swift_MODULE_DIRECTORY})
target_link_libraries(SwiftExtensions PRIVATE
  $<$<NOT:$<PLATFORM_ID:Darwin>>:Foundation>)
